package com.ghxxzx.daglcustom.business_fk.file.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.tmsps.ne4spring.orm.model.DataModel;

import com.ghxxzx.daglcustom.utils.CreatedTools;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "fk_file")
@org.tmsps.ne4spring.annotation.Table("fk_file")
public class FilePo extends DataModel {

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	private String kid;

	private String file_name;
	private String new_file_name;
	private String folder;
	private String folder_url;
	private String content_type;
	private long size;// 文件大小
	private String note;// 备注

	// ========== 系统字段 ========================

	private int status;
	private long created = CreatedTools.getCreated();
}
